package quick.start.core.exception;

/**
 * 核心异常 <br/>
 * 区别于系统容错异常{@link SysException}.
 * 
 */
public class CoreException extends RuntimeException implements IRecoverable {

    private static final long serialVersionUID = 6901267447656540397L;

    public int code;

    public CoreException(String detailMessage) {
        super(detailMessage);
    }

    public CoreException(String detailMessage, Exception e) {
        super(detailMessage, e);
    }

    @Override
    public boolean isRecoverable() {
        return false;
    }
}